Optimal. Leaf size=78 \[ -\frac {\cos (e+f x) \, _2F_1\left (\frac {1-n}{2},\frac {2-n}{2};\frac {3-n}{2};\cos ^2(e+f x)\right ) \sin ^2(e+f x)^{-n/2} (b \tan (e+f x))^n}{f (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 78, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2681, 2656}
\begin {gather*} -\frac {\cos (e+f x) \sin ^2(e+f x)^{-n/2} (b \tan (e+f x))^n \, _2F_1\left (\frac {1-n}{2},\frac {2-n}{2};\frac {3-n}{2};\cos ^2(e+f x)\right )}{f (1-n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2656
Rule 2681
Rubi steps
\begin {align*} \int \csc (e+f x) (b \tan (e+f x))^n \, dx &=\left (\cos ^n(e+f x) \sin ^{-n}(e+f x) (b \tan (e+f x))^n\right ) \int \cos ^{-n}(e+f x) \sin ^{-1+n}(e+f x) \, dx\\ &=-\frac {\cos (e+f x) \, _2F_1\left (\frac {1-n}{2},\frac {2-n}{2};\frac {3-n}{2};\cos ^2(e+f x)\right ) \sin ^2(e+f x)^{-n/2} (b \tan (e+f x))^n}{f (1-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 64, normalized size = 0.82 \begin {gather*} \frac {\, _2F_1\left (\frac {n}{2},n;1+\frac {n}{2};\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right )\right )^n (b \tan (e+f x))^n}{f n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.22, size = 0, normalized size = 0.00 \[\int \csc \left (f x +e \right ) \left (b \tan \left (f x +e \right )\right )^{n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \tan {\left (e + f x \right )}\right )^{n} \csc {\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (b\,\mathrm {tan}\left (e+f\,x\right )\right )}^n}{\sin \left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________